const user = {
  namespaced: true,
  state: {
    userId: null,
    roleId: null,
    userInfo: null,
    token: null,
    manageType: null,
  },
  mutations: {
    SET_USERID: (state, userId) => {
      state.userId = userId
    },
    SET_ROLEID: (state, roleId) => {
      state.roleId = roleId
    },
    SET_USERINFO: (state, userInfo) => {
      state.userInfo = userInfo
    },
    SET_TOKEN: (state, token) => {
      state.token = token
    },
    SET_MANAGETYPE: (state, manageType) => {
      state.manageType = manageType
    },
  }
}

export default user
